package pl.andrzejag.seleniumtests;

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;

public class LoginPage extends Page {

	public LoginPage(WebDriver driver) {
		super(driver);
	}
	public void open(){
		driver.get(baseUrl);
	}
	public HomePage login(String login, String password){
		insertText(By.id("login"), login);
		insertText(By.id("password"), password);
		click(By.name("commit"));
		return new HomePage(driver);
	}
	
}
